package com.kantboot.business.talent.service.impl;

import com.kantboot.business.talent.domain.entity.BusTalentSeries;
import com.kantboot.business.talent.domain.vo.BusTalentSeriesHasTitleLevel;
import com.kantboot.business.talent.repository.BusTalentSeriesHasTitleLevelRepository;
import com.kantboot.business.talent.repository.BusTalentSeriesRepository;
import com.kantboot.business.talent.service.IBusTalentSeriesService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BusTalentSeriesServiceImpl implements IBusTalentSeriesService {

    @Resource
    private BusTalentSeriesRepository repository;

    @Resource
    private BusTalentSeriesHasTitleLevelRepository hasTitleLevelRepository;

    @Override
    public List<BusTalentSeries> getAll() {
        return repository.findAll();
    }

    @Override
    public List<BusTalentSeriesHasTitleLevel> getAllHasTitleLevel() {
        return hasTitleLevelRepository.findAll();
    }
}
